package com.lulalei.dbviewer.commons.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *     数据库链接属性
 * </p>
 *
 * @author lulalei
 * @create 2021-05-14 20:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties("spring.datasource")
public class DBParameter {
    private String url;
    private String username;
    private String password;
    private String driverClassName;
}
